home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Essentials
/
C++ A'Link Files
/
1989
/
0005-Re DRVR installation-Nov89
< prev
next >
Wrap
Text File
|
1991-03-06
|
2KB
|
44 lines
Item forwarded by ALCABES to CP.ARCHIVES
Item forwarded by ANDRIEUX to EURO.DTS
Item forwarded by UK0310 to SHAYER1 CPLUS.DEV$
Item 5765538 22-Nov-89 10:10
From: BATISTA Batista, Ricardo
To: UK0310 Paul G Smith
Sub: Re: DRVR installation
Paul, there is a technical note that tells you how to find an empty entry in
the unit table, this technical note will also tell you how to expand the unit
table if nessesary.
What you have to do, is get the current number of entries in the unit table,
then go down trough them until you find an empty one or you get down to last
SCSI entry, (I think the technical note tells you which entry is this, entry
38?), when you find an empty unit table entry, say 45, you can just go ahead
and install your driver in it, since everyone uses the same scheme to install
drivers, nobody is going to step on your toes.
If an empty entry is not found, then you need to check to see if the unit table
can actually hold more entries than what is says by checking the size of the
pointer to the unit table, if the pointer actually has more space, then just
change the number of unit tables available and repeat the process of finding an
empty slot. If the unit table is actually full, then make a new pointer in the
system heap bigger enough to hold about 16 more entries (and clear it) ,
disable the interrupts, copy the original unit table into the new one, reset
the number of entries available in the table (a global UnitEnrtyCnt), update
the global pointer, enable interrupts and dispose of the original unit table
pointer, now you can go ahead and find an empty slot.
Sorry I wrote this in a rush, but I gotta lot to do today.
Ricardo Batista
Software Engineer
Apple Computer, Inc.